﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Edu.Web.Data.DAO;
using Edu.Web.Data.DV;
using Edu.Web.Data.Entity;
using ESoft.Core.Data.DAO;
using ESoft.Core.Data.Service.Impl;

namespace Edu.Web.Data.Service.Impl
{
    public class EvaluateService : BaseService<EvaluateEntity, long>, IEvaluateService
    {
        private readonly IEvaluateDAO _evaluateDao;

        public EvaluateService(IEvaluateDAO evaluateDao) : base(evaluateDao)
        {
            _evaluateDao = evaluateDao;
        }

        public List<Evaluate4TeacherDV> GetListByTeacherId(long teacherId)
        {
            return _evaluateDao.GetListByTeacherId(teacherId).ToList();
        }
    }
}